package org.kolonitsky.intuit.correcttime;

import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import java.rmi.RemoteException;
import java.util.Date;

/**
 * @author Alex.Kolonitsky
 */
public class CorrectTimeBean implements SessionBean {
    public static final long serialVersionUID = 6066529880637710711L;

    public void ejbCreate() {
    }

    public Date obtainCorrectTime() {
        return new Date();
    }

    public void ejbActivate() throws EJBException, RemoteException {
    }

    public void ejbPassivate() throws EJBException, RemoteException {
    }

    public void ejbRemove() throws EJBException, RemoteException {
    }

    public void setSessionContext(SessionContext arg0) throws EJBException, RemoteException {
    }
}